﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using L = Science.Mathematics.LinearAlgebra;

namespace Strang3Ed.Chapter10.Section1
{
    public class Example01
    {
        public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
        public void Compute()
        {
            Science.Mathematics.Complex z 
                = new Science.Mathematics.Complex(1.0,1.0);
        
            result += z.Abs.ToString() + "\r\n";

            result += z.Arg.ToString() + "\r\n";

            result += (Math.PI/ 4.0).ToString() + "\r\n";

            Science.Mathematics.Complex zbar 
                = Science.Mathematics.Complex.Conjugate(z);
      
            result += zbar.Abs.ToString() + "\r\n";

            result += zbar.Arg.ToString() + "\r\n";

            result += (2.0*Math.PI - Math.PI / 4.0).ToString() + "\r\n";
        }
    }
}
/*
1.4142135623731
0.785398163397448
0.785398163397448
1.4142135623731
5.49778714378214
5.49778714378214
*/
